//登录日志模块
import request from "@/utlis/request";
import type {
  IPage,
  ILoginLogResponseData,
  IDeleteResponseData,
} from "@/api/acl/type";

enum API {
  LOGINLOGFINDPAGE_URL = "/loginlog/findPage", //查询列表
  LOGINLOGDELETE_URL = "/loginlog/delete", //删除
}

export const reqFindPage = async (data: IPage) => {
  return await request.post<any, ILoginLogResponseData>(
    API.LOGINLOGFINDPAGE_URL,
    data,
  );
};

export const reqDeleteLog = async (data: any) => {
  return await request.post<any, IDeleteResponseData>(
    API.LOGINLOGDELETE_URL,
    data,
  );
};
